package com.zyh.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {

    private Integer commentId;
    private Integer userId;
    private String content;
    private Date createdAt;
    private String parentType;
    private Integer parentId;
    private Integer likeCount;

    public Comment(Integer userId, String content, String parentType, Integer parentId) {
        this.userId = userId;
        this.content = content;
        this.parentType = parentType;
        this.parentId = parentId;
        this.likeCount = 0;
    }
}
